package com.bean.base;

import com.alibaba.excel.annotation.ExcelProperty;
import com.bean.anno.TableExcel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@Entity
@Table(name = "website")
@TableExcel(name="website", content = "EasyExcel字典",jpaBeanName="com.mapper.repository.WebSiteRepository")
public class WebSite {

    @Id
    @ExcelProperty("ID")
    private String id;

    @ExcelProperty("label")
    private String label;

    @ExcelProperty("value")
    private String value;

    @ExcelProperty("num")
    private int num;

    @ExcelProperty("description")
    private String description;

    @ExcelProperty("createtime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;

    @ExcelProperty("updatetime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatetime;

    @JsonProperty("userid")
    private String creator;

}
